import request from '@/utils/request'

/*
 * 小程序登陆
 * */
export function wxappAuth(data) {
  return request({
    url: '/login/wxAuth',
    method: 'post',
    data:data,
    power: false
  })
}

 //登录接口
export function login(data) {
  return request({
    url: '/login/login',
    method: 'post',
    data:data,
    power: false
  })
}

//账号注册接口
export function register(data) {
  return request({
    url: '/login/register',
    method: 'post',
    data:data,
    power: false
  })
}

//获取短信验证码
export function registerVerify(data) {
  return request({
    url: '/login/sendSmsCode',
    method: 'post',
    data:data,
    power: false
  })
}


//获取短信验证码
export function getvcodebymob(data) {
  return request({
    url: '/login/getvcodebymob',
    method: 'post',
    data:data,
    power: false
  })
}

//找回密码
export function retrievePassword(data){
	return request({
	  url: '/login/RetrievePassword',
	  method: 'post',
	  data:data,
	  power: false
	})
}